#!/bin/bash

if [[ $# < 1 ]]; then
	echo "Inform the config name";
	exit;
fi

NAME=$1


if [[ $# < 2 ]]; then
	M=30;
else
	M=$2;
fi

for (( N=0; N<M; N++ )); do
echo "Running $NAME $N"
./geoCoolStreamingLive -u Cmdenv -c $NAME -r $N > dump

done

cd results

./stats.sh $NAME $M > dump

rm dump

cd ..

rm dump
